package com.henan.caigou.entity;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * (Contract)实体类
 *
 * @author makejava
 * @since 2025-04-24 12:22:57
 */
@Data
@TableName("contract")
public class Contract implements Serializable {

    private static final long serialVersionUID = -36707618936070210L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 合同ID
     */
    private Integer infoId;

    /**
     * 标题
     */
    private String title;

    /**
     * 公告类型
     */
    private String type;

    /**
     * 区域
     */
    private String region;

    /**
     * 采购人
     */
    private String purchaser;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date publishTime;
//    private String publishTime;

    /**
     * 发布机构
     */
    private String publishOrgin;

    /**
     * 合同内容
     */
    private String content;

    /**
     * 附件url
     */
    private String attachmentUrl;
    private String attachmentName;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    @TableField(exist = false)
    private String url;

}
